package com.ychs.lawyer.bean;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: clh
 * @Date: 2024/07/25/16:07
 * @Description:
 */
public enum ResultCode {
    //    常量
//    通过全参自己构造buzhidao
    SUCCESS(200,"成功"),
    NO_PRVILEGE(401,"没有权限"),
    NO_lOGIN(403,"用户名或密码有误"),
    ERROR(500,"系统异常,请联系管理员"),
    ERROR_TOKEN(500100,"token有误"),
//    所有的添加和修改失败
    OPERATE_EROOR(500101,"操作失败");


     private Integer code;
    private String msg;
//全参构造
    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}



